home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / MailEnclosure / Source.v0.15 / PopUpButton.m < prev    next >
Text File  |  1995-06-12  |  297b  |  19 lines

  1. #import "PopUpButton.h"
  2.  
  3. @implementation Button (PopUpButton)
  4.  
  5. - setPopUpTitle: (const char *)str
  6. {
  7.    int index = [[self target] indexOfItem: str];
  8.  
  9.    if(index == -1)
  10.        return nil;
  11.    
  12.    [self setTitle: str];
  13.    [[[self target] itemList] selectCellAt: index : 0];
  14.    return self;
  15. }
  16.  
  17.  
  18. @end
  19.